#include <QtGui/QApplication>
#include <QDateTime>
#include <QLocale>
#include <QTranslator>
#include "qtlotto.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    a.setApplicationName("QtLotto");
    a.setApplicationVersion(APP_VERSION);
    qsrand(QDateTime::currentDateTime().toTime_t());
    QString locale = QLocale::system().name();
    QTranslator translator;
    translator.load(QString("qtlotto_") + locale);
    a.installTranslator(&translator);
    QtLotto w;
    w.show();

    return a.exec();
}
